import QtQuick 2.0
import QtQuick.Layouts 1.12
import "../base"

Item {
    id: root
    anchors.fill: parent

    GridLayout {
        anchors.centerIn: parent
        width: 500
        height: 300
        columns: 2
        rows: 7
        columnSpacing: 0
        rowSpacing: 30
        InputLineBox {
            Layout.row: 0
            Layout.column: 0
            txt: "账号："
        }
        InputLineBox {
            Layout.row: 0
            Layout.column: 1
            Layout.alignment: Qt.AlignRight
            txt: "密码："
        }
        InputComboBox {
            Layout.row: 1
            Layout.column: 0
            Layout.columnSpan: 2
            Layout.preferredWidth: 250
            Layout.preferredHeight: 30
            modelBox: ["男", "女"]
            txt: "性别："
        }
        InputLineBox {
            Layout.row: 2
            Layout.column: 0
            Layout.columnSpan: 2
            Layout.fillWidth: true
            txt: "手机号：";
        }
        InputLineBox {
            Layout.row: 3
            Layout.column: 0
            Layout.preferredWidth: 350
            txt: "邮箱："
        }
        PushButton {
            Layout.row: 3
            Layout.column: 1
            Layout.leftMargin: 50
            txt: "验证"
        }
        InputLineBox {
            Layout.row: 4
            Layout.column: 0
            Layout.preferredWidth: 350
            txt: "验证码："
        }
        InputEditBox {
            Layout.row: 5
            Layout.column: 0
            Layout.columnSpan: 2
            txt: "描述："
        }
        RowLayout {
            Layout.row: 6
            Layout.column: 0
            Layout.columnSpan: 2
            Layout.alignment: Qt.AlignRight
            spacing: 20
            PushButton { txt: "确认" }
            PushButton { txt: "取消" }
        }
    }
}
